﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.DAL;

namespace Domain.BLL
{
    public class OrderDetailsBLL
    {
        public int OrderDetailID { get; set; }
        public int OrderID { get; set; }
        public int ProductID { get; set; }
        public int Quantity { get; set; }
        public int UnitPrice { get; set; }
        public int Discount { get; set; }
        public ProductBLL Product { get; set; }
        public OrderBLL Order { get; set; }

        public void insertSingle(OrderBLL order, Cart cartItem)
        {
            //this.OrderID = order.OrderID;
            //this.ProductID = (int)cartItem.ProductID;
            //this.Quantity = (int)cartItem.Count;
            //this.UnitPrice = (int)cartItem.Product.SalePrice;
            //this.Discount = (int)cartItem.

            OrderDetailsDAL.insertSingle(this);
        }
    }
}
